<?php

if(isset($_GET['id']))// if id is set then get the file with the id from database
{

	require_once 'config.php';

	$id    = $_GET['id'];
	$query = "DELETE FROM upload WHERE id = '$id'";

	$result = mysql_query($query) or die('Error, query failed');
}
require_once 'file_download.php';
?>